import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';

import { PassportComponent } from './passport/passport.component';
import { LayoutComponent } from './layout/layout.component';
import { Exception404Component } from './exception/404.component';

import { LoginComponent } from './passport/login/login.component';
import { HeaderComponent } from './layout/header/header.component';
import { SidebarComponent } from './layout/sidebar/sidebar.component';
import { SelectSiteComponent } from './layout/select-site/select-site.component';

const COMPONENTS = [
  PassportComponent,
  LayoutComponent,
  Exception404Component,
];

const COMPONENTS_NOROUNT = [
  LoginComponent,
  HeaderComponent,
  SidebarComponent,
  SelectSiteComponent
];

@NgModule({
  imports: [SharedModule],
  providers: [],
  declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],
  exports: [...COMPONENTS],
  entryComponents: [...COMPONENTS_NOROUNT]
})
export class LayoutModule { }
